package com.maiji.cloud.mapper;

import java.util.List;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.maiji.cloud.request.login.FoodFindAllReqData;
import com.maiji.cloud.response.login.FoodMaterialResData;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import com.maiji.cloud.entities.login.FoodMaterialEntity;

@Mapper
public interface FoodMaterialMapper extends BaseMapper<FoodMaterialEntity> {

	/**
	 * 根据食材名字搜索
	 * @param name
	 * @return
	 */
	List<FoodMaterialEntity> selectListByName(@Param("name")String name,@Param("ids")List<String> ids,@Param("typeLabelId")String typeLabelId);
	
	/**
	 * 根据主键id查询
	 * @param uuId
	 * @return
	 */
	FoodMaterialEntity selectOneById(@Param("uuId")String uuId);

	List<FoodMaterialResData> findAllFoods(@Param("data") FoodFindAllReqData data, Page page);

	List<String> getTypeLableIds (@Param("foodMaterialName") String foodMaterialName);
}
